import request from '@/utils/request'

// 查询试剂盒记录列表
export function listReagentBoxBac(query) {
  return request({
    url: '/product/reagentBoxBac/list',
    method: 'get',
    params: query
  })
}

// 查询试剂盒记录详细
export function getReagentBoxBac(boxId) {
  return request({
    url: '/product/reagentBoxBac/' + boxId,
    method: 'get'
  })
}

// 新增试剂盒记录
export function addReagentBoxBac(data) {
  return request({
    url: '/product/reagentBoxBac',
    method: 'post',
    data: data
  })
}

// 修改试剂盒记录
export function updateReagentBoxBac(data) {
  return request({
    url: '/product/reagentBoxBac',
    method: 'put',
    data: data
  })
}

// 删除试剂盒记录
export function delReagentBoxBac(boxId) {
  return request({
    url: '/product/reagentBoxBac/' + boxId,
    method: 'delete'
  })
}

// 导出试剂盒记录
export function exportReagentBoxBac(query) {
  return request({
    url: '/product/reagentBoxBac/export',
    method: 'get',
    params: query
  })
}

// 获取某个订单的第一个盒贴条码
export function getOrderFirstBarcode(orderId) {
  return request({
    url: '/product/reagentBox/getOrderFirstBarcode/' + orderId,
    method: 'get',
  })
}
